<h2>Invitation Request</h2>

<p>
	Requests for invitations to the conference will be processed within a few days. 
</p>

<p>
	The workshops are presented in association with altdotnet.org. You will receive details
	from altdotnet.org if you register for the workshops.
</p>

<%= error_messages_for 'invitation_request', 'person', :object_name => "request", :id => "error_explanation" %>
<% form_for :eval, :url => eval_path, :method => :post do |form| %>

	<br />
	<p>
		<% if @invitation_request && @invitation_request.errors.on(:open_space_participation) -%>
		<span class="checkbox">
		<% end -%>

		<%= form.check_box(:open_space_participation) %> <%= form.label(:open_space_participation, "I will be participating in the open space <span class='small dim'>(Fri, Oct 31, 5pm to Sun, Nov 2, 1pm)</span>", :class => "model_label") %>

		<% if @invitation_request && @invitation_request.errors.on(:open_space_participation) -%>
		</span>
		<% end -%>
	</p>

	<p>
		<% if @invitation_request && @invitation_request.errors.on(:workshops_attendance) -%>
		<span class="checkbox">
		<% end -%>

		<%= form.check_box(:workshops_attendance) %> <%= form.label(:workshops_attendance, "I will be attending the workshops <span class='small dim'>(Thurs, Oct 30, 8am to Fri, Oct 31, 4pm)<span>", :class => "model_label") %>

		<% if @invitation_request && @invitation_request.errors.on(:workshops_attendance) -%>
		</span>
		<% end -%>
	</p>
	<br />

	<% fields_for :person do |person_fields| %>
		<p>
	  	<%= person_fields.label(:name, "Name", :class => "model_label") %> <span class="required">*</span><br />
			<%= person_fields.text_field(:name, :size => 60) %>
		</p>

		<p>
	  	<%= person_fields.label(:email_address, "Email Address", :class => "model_label") %> <span class="required">*</span><br />
			<%= person_fields.text_field(:email_address, :size => 60) %>
		</p>

		<p>
	  	<%= person_fields.label(:location, "Location (eg: Austin, TX)", :class => "model_label") %> <span class="required">*</span><br />
			<%= person_fields.text_field(:location, :size => 60) %>
		</p>

		<p>
	  	<%= person_fields.label(:url, "URL", :class => "model_label") %><br />
			<%= person_fields.text_field(:url, :size => 60) %>
		</p>
	<% end %>

	<p>
		<%= form.label(:comment, "Comment", :class => "model_label") %><br />
		<%= form.text_field(:comment, :size => 60) %>
	</p>

	<br />
	<%= submit_tag 'Send' %>
	or
	<%= link_to "cancel", new_invitation_request_path() %>
<% end %>